﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


/**
* @Author: AdinZ
* @Q  Q : 1454269
* @Email:adinz@adinz.com
* @Created: 2014/3/31 16:40:34
*
* */
namespace Novel.Sys.Model
{
    public class novel_user
    {
        private int iD;
        private int gid;
        private string nick;
        private string name;
        private string passwd;
        private string email;
        private string phone;
        private string avatar;
        private int sex;

        public novel_user()
        {
        }

        /// <summary>
        /// 用户id
        /// </summary>
        public int ID
        {
            get { return iD; }
            set { iD = value; }
        }
        /// <summary>
        /// 分组id
        /// </summary>
        public int Gid
        {
            get { return gid; }
            set { gid = value; }
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string Nick
        {
            get { return nick; }
            set { nick = value; }
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        /// <summary>
        /// 密码
        /// </summary>
        public string Passwd
        {
            get { return passwd; }
            set { passwd = value; }
        }
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        /// <summary>
        /// 用户手机号
        /// </summary>
        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string Avatar
        {
            get { return avatar; }
            set { avatar = value; }
        }


        /// <summary>
        /// 性别 0=女,1=男,2=隐藏,3=人妖
        /// </summary>
        public int Sex
        {
            get { return sex; }
            set { sex = value; }
        }
        public void Reset()
        {
            iD = 0;
            gid = 0;
            nick = null;
            name = null;
            passwd = null;
            email = null;
            phone = null;
            avatar = null;
            sex = 0;
        }

        public void AssignFrom(novel_user AObj)
        {
            if (AObj == null)
            {
                Reset();
                return;
            }
            iD = AObj.iD;
            gid = AObj.gid;
            nick = AObj.nick;
            name = AObj.name;
            passwd = AObj.passwd;
            email = AObj.email;
            phone = AObj.phone;
            avatar = AObj.avatar;
            sex = AObj.sex;
        }

    }

}

